import Vue from 'vue';
import Vuex from 'vuex';

import getters from './Getters';
import state from './State';
import actions from './Actions';
import mutations from './mutations';
import createLogger from 'vuex/dist/logger';
import { debug } from 'webpack';

Vue.use(Vuex);

constdebug = process.env.NODE_ENV !== 'production';

export default newVuex.Store({
    getters,
    state,
    actions,
    mutations,
    strict:debug,
    plugins:debug?[createLogger()]:[]
})